<div class="col-md-10 col-md-offset-1 list-comment">
	<ul>
	<?php
		if(isset($allMessageProject)){
			foreach ($allMessageProject as $message) {
				if($message->sender_id == $this->loggedInUser->id){
	?>
					<li class="text-right">
						<dl>
							<dd>
								<div class="top">
									<span class="name-pm"><?php echo "Me";?></span> 
									<span class="time"><?php echo date("H:i:s d-m-Y", $message->date);?></span>
								</div>
								<p style="color:#5cb85c"><?php echo $message->content;?></p>
							</dd>
						</dl>
					</li>
	<?php
				}else{
	?>
				<li class="text-left">
					<dl>
						<dd>
							<div class="top">
								<span class="name-pm"><?php echo $message->receiver;?></span> 
								<span class="time"><?php echo date("H:i:s d-m-Y", $message->date);?></span>
							</div>
							<p style="color:#428bca"><?php echo $message->content;?></p>
						</dd>
					</dl>
				</li>
	<?php				
				}	
			}
		}
	?>
		
	</ul>
</div>